#include "UdpServer.hpp"


int main(int argc, char* argv[])
{
    if(argc != 2){
        // LOG(LogLevel::FATAL) 
        std::cerr << "Usage: " << argv[0] << " PORT" << std::endl;
        Die(err::USE_ERR);
    }

    uint16_t port = std::stoi(argv[1]);
    
    LOG_CONSOLE;

    std::unique_ptr<UdpServer> svr = std::make_unique<UdpServer>(port);
    svr->InitServer();
    svr->Start();

    return 0;
}